﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Site.Master" AutoEventWireup="true" CodeBehind="GerenciarUsuarios.aspx.cs" Inherits="Ecommerce.Admin.Paginas.GerenciarUsuarios" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="box_toolbox">
        <div id="div_toolbox_titulo">
            <asp:Label ID="lblTituloMenu" runat="server" Text="Gerenciar Usuários"></asp:Label>
        </div>
        <div id="div_toolbox_botoes">
            <asp:Button ID="btnAdicionar" runat="server" CssClass="Botao_Toolbox" 
                Text="Adicionar" onclick="btnAdicionar_Click" />
        </div>
    </div>
    
    
    <div id="grid">
        <asp:GridView ID="grvUsuarios" runat="server" AutoGenerateColumns="False" 
            Width="100%" GridLines="None"
            HeaderStyle-CssClass="Table_Header" 
            AlternatingRowStyle-CssClass="Table_Body_Alternate" 
            RowStyle-CssClass="Table_Body" onrowdatabound="grvUsuarios_RowDataBound">
        <Columns>  
                <asp:BoundField DataField="pes_des_login" HeaderStyle-HorizontalAlign="Left" HeaderText="Id" ReadOnly="True" SortExpression="CustomerID" />  
                <asp:BoundField DataField="pes_des_login" HeaderStyle-HorizontalAlign="Left" HeaderText="Email" SortExpression="CompanyName" />
                <asp:BoundField DataField="pes_des_login" HeaderStyle-HorizontalAlign="Left" HeaderText="Nome" SortExpression="CompanyName" />
                <asp:BoundField DataField="pes_des_login" HeaderStyle-HorizontalAlign="Left" HeaderText="Status" ReadOnly="True" SortExpression="CustomerID" />  
                <asp:BoundField DataField="pes_des_login" HeaderStyle-HorizontalAlign="Left" HeaderText="Criado em" SortExpression="CompanyName" />
                <asp:BoundField DataField="pes_des_login" HeaderStyle-HorizontalAlign="Left" HeaderText="Ultima atividade" SortExpression="CompanyName" />

                <asp:TemplateField HeaderText="Editar" HeaderStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:LinkButton ID="lkbEditar" runat="server">LinkButton</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                
            </Columns>  
        </asp:GridView>
    </div>
</asp:Content>
